<template>
  <div class="page">
    <Tabs value="name1" v-model="tabValue">
      <TabPane label="我的账单" name="name1"></TabPane>
    </Tabs>
    <div class="content">
      <div class="select-more">
        <Row :gutter="16">
          <Col span="4">
            <DatePicker type="date" placeholder="开始时间"></DatePicker>
          </Col>
          <Col span="4">
            <DatePicker type="daterange" placement="bottom-end" placeholder="结束时间"></DatePicker>
          </Col>
          <Col span="4">
            <Select class="select-type" v-model="model1" >
              <Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
            </Select>
          </Col>
          <Col span="3">
            <Button type="primary" class="search-btn" long>搜索</Button>
          </Col>
          <Col span="3">
            <Button class="search-btn" icon="ios-download-outline"  long>下载账单</Button>
          </Col>
        </Row>
      </div>
      <!--积分明细-->
      <Table  :columns="columns1" :data="data1"></Table>
      <div class="page">
        <Page :total="100" show-sizer />
      </div>
    </div>
    <Modal
        width="420px"
        class="pop"
        v-model="modal1"
        title="兑换商品">
      <div>
        <Input/>
      </div>
      <div class="pop-footer" slot="footer">
        <Button class="btn" type="primary" long>使用积分兑换</Button>
        <Button class="btn" long>
          <span>支付仓储兑换</span>
          <span class="iconfont icon-remen"></span>
        </Button>
      </div>
    </Modal>
  </div>
</template>

<script>
export default {
  name: "points",
  data() {
    return {
      modal1: false,
      tabValue: 'name1',
      columns1: [
        {
          title: '日期',
          key: 'name'
        },
        {
          title: '金额',
          key: 'age'
        },
        {
          title: '业务类型',
          key: 'address'
        },
        {
          title: '交易编号',
          key: 'address'
        },
        {
          title: '交易方式',
          key: 'address'
        },
        {
          title: '备注',
          key: 'address'
        }
      ],
      data1: [
        {
          name: 'John Brown',
          age: 18,
          address: 'New York No. 1 Lake Park',
          date: '2016-10-03'
        },
        {
          name: 'Jim Green',
          age: 24,
          address: 'London No. 1 Lake Park',
          date: '2016-10-01'
        },
        {
          name: 'Joe Black',
          age: 30,
          address: 'Sydney No. 1 Lake Park',
          date: '2016-10-02'
        },
        {
          name: 'Jon Snow',
          age: 26,
          address: 'Ottawa No. 2 Lake Park',
          date: '2016-10-04'
        }
      ],
    }
  }
}
</script>

<style scoped lang="less">
.page {
  .top {
    margin-top: 24px;
    border-radius: 4px;
    margin-bottom: 32px;
    box-shadow: 0px 4px 20px 0px rgba(0,0,0,0.08);
    background: #FFFFFF;
    overflow: hidden;
    .top-wallet {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: @primary-color;
      padding: 24px;
      .left {
        color: #FFFFFF;
        font-size: 12px;
        .text {
          display: block;
          font-size: 14px;
        }
        .num {
          display: block;
          font-size: 32px;
        }
      }
      .right {
        display: flex;
        align-items: center;
        .btn {
          width: 120px;
          background: @t-title-color;
          border: 0;
          color: #FFFFFF;
        }
        .iconfont {
          margin-left: 6px;
          color: #FFFFFF;
        }
      }
    }
    .top-content {
      padding: 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .amount {
        margin: 12px;
        color: red;
      }
      .records {
        cursor: pointer;
        color: @primary-color;
        font-size: 14px;
      }

    }
  }
  .content {
    margin-top: 32px;
    padding-bottom: 24px;
    .select-more {
      margin-bottom: 24px;
      .label {
        height: 100%;
        display: flex;
        align-items: center;
      }
    }
    .page {
      text-align: right;
      margin-top: 24px;
    }
  }
}
.pop {
  &:deep(.ivu-modal) {
    .pop-footer {
      .btn {
        margin: 0;
        margin-top: 12px;
        &:first-child {
          margin-top: 0;
        }
        .iconfont {
          color: red;
        }
      }
    }
    .ivu-modal-footer {
      border: 0;
    }
  }
}
</style>